Optimal. Leaf size=372 \[ \frac {2 d^2 p^2 x^{1-2 n} (f x)^{-1+3 n}}{e^2 n}-\frac {d p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^2}{2 e^3 n}+\frac {2 p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^3}{27 e^3 n}-\frac {d^3 p^2 x^{1-3 n} (f x)^{-1+3 n} \log ^2\left (d+e x^n\right )}{3 e^3 n}-\frac {2 d^2 p x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{e^3 n}+\frac {d p x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^2 \log \left (c \left (d+e x^n\right )^p\right )}{e^3 n}-\frac {2 p x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^3 \log \left (c \left (d+e x^n\right )^p\right )}{9 e^3 n}+\frac {2 d^3 p x^{1-3 n} (f x)^{-1+3 n} \log \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{3 e^3 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.22, antiderivative size = 372, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 9, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {2506, 2504,
2445, 2458, 45, 2372, 12, 14, 2338} \begin {gather*} \frac {2 d^3 p x^{1-3 n} (f x)^{3 n-1} \log \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{3 e^3 n}-\frac {2 d^2 p x^{1-3 n} (f x)^{3 n-1} \left (d+e x^n\right ) \log \left (c \left (d+e x^n\right )^p\right )}{e^3 n}-\frac {2 p x^{1-3 n} (f x)^{3 n-1} \left (d+e x^n\right )^3 \log \left (c \left (d+e x^n\right )^p\right )}{9 e^3 n}+\frac {d p x^{1-3 n} (f x)^{3 n-1} \left (d+e x^n\right )^2 \log \left (c \left (d+e x^n\right )^p\right )}{e^3 n}+\frac {x (f x)^{3 n-1} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}-\frac {d^3 p^2 x^{1-3 n} (f x)^{3 n-1} \log ^2\left (d+e x^n\right )}{3 e^3 n}+\frac {2 d^2 p^2 x^{1-2 n} (f x)^{3 n-1}}{e^2 n}+\frac {2 p^2 x^{1-3 n} (f x)^{3 n-1} \left (d+e x^n\right )^3}{27 e^3 n}-\frac {d p^2 x^{1-3 n} (f x)^{3 n-1} \left (d+e x^n\right )^2}{2 e^3 n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 45
Rule 2338
Rule 2372
Rule 2445
Rule 2458
Rule 2504
Rule 2506
Rubi steps
\begin {align*} \int (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right ) \, dx &=\left (x^{1-3 n} (f x)^{-1+3 n}\right ) \int x^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right ) \, dx\\ &=\frac {\left (x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int x^2 \log ^2\left (c (d+e x)^p\right ) \, dx,x,x^n\right )}{n}\\ &=\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}-\frac {\left (2 e p x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \frac {x^3 \log \left (c (d+e x)^p\right )}{d+e x} \, dx,x,x^n\right )}{3 n}\\ &=\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}-\frac {\left (2 p x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \frac {\left (-\frac {d}{e}+\frac {x}{e}\right )^3 \log \left (c x^p\right )}{x} \, dx,x,d+e x^n\right )}{3 n}\\ &=-\frac {p x^{1-3 n} (f x)^{-1+3 n} \left (\frac {18 d^2 \left (d+e x^n\right )}{e^3}-\frac {9 d \left (d+e x^n\right )^2}{e^3}+\frac {2 \left (d+e x^n\right )^3}{e^3}-\frac {6 d^3 \log \left (d+e x^n\right )}{e^3}\right ) \log \left (c \left (d+e x^n\right )^p\right )}{9 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}+\frac {\left (2 p^2 x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \frac {18 d^2 x-9 d x^2+2 x^3-6 d^3 \log (x)}{6 e^3 x} \, dx,x,d+e x^n\right )}{3 n}\\ &=-\frac {p x^{1-3 n} (f x)^{-1+3 n} \left (\frac {18 d^2 \left (d+e x^n\right )}{e^3}-\frac {9 d \left (d+e x^n\right )^2}{e^3}+\frac {2 \left (d+e x^n\right )^3}{e^3}-\frac {6 d^3 \log \left (d+e x^n\right )}{e^3}\right ) \log \left (c \left (d+e x^n\right )^p\right )}{9 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}+\frac {\left (p^2 x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \frac {18 d^2 x-9 d x^2+2 x^3-6 d^3 \log (x)}{x} \, dx,x,d+e x^n\right )}{9 e^3 n}\\ &=-\frac {p x^{1-3 n} (f x)^{-1+3 n} \left (\frac {18 d^2 \left (d+e x^n\right )}{e^3}-\frac {9 d \left (d+e x^n\right )^2}{e^3}+\frac {2 \left (d+e x^n\right )^3}{e^3}-\frac {6 d^3 \log \left (d+e x^n\right )}{e^3}\right ) \log \left (c \left (d+e x^n\right )^p\right )}{9 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}+\frac {\left (p^2 x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \left (18 d^2-9 d x+2 x^2-\frac {6 d^3 \log (x)}{x}\right ) \, dx,x,d+e x^n\right )}{9 e^3 n}\\ &=\frac {2 d^2 p^2 x^{1-2 n} (f x)^{-1+3 n}}{e^2 n}-\frac {d p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^2}{2 e^3 n}+\frac {2 p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^3}{27 e^3 n}-\frac {p x^{1-3 n} (f x)^{-1+3 n} \left (\frac {18 d^2 \left (d+e x^n\right )}{e^3}-\frac {9 d \left (d+e x^n\right )^2}{e^3}+\frac {2 \left (d+e x^n\right )^3}{e^3}-\frac {6 d^3 \log \left (d+e x^n\right )}{e^3}\right ) \log \left (c \left (d+e x^n\right )^p\right )}{9 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}-\frac {\left (2 d^3 p^2 x^{1-3 n} (f x)^{-1+3 n}\right ) \text {Subst}\left (\int \frac {\log (x)}{x} \, dx,x,d+e x^n\right )}{3 e^3 n}\\ &=\frac {2 d^2 p^2 x^{1-2 n} (f x)^{-1+3 n}}{e^2 n}-\frac {d p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^2}{2 e^3 n}+\frac {2 p^2 x^{1-3 n} (f x)^{-1+3 n} \left (d+e x^n\right )^3}{27 e^3 n}-\frac {d^3 p^2 x^{1-3 n} (f x)^{-1+3 n} \log ^2\left (d+e x^n\right )}{3 e^3 n}-\frac {p x^{1-3 n} (f x)^{-1+3 n} \left (\frac {18 d^2 \left (d+e x^n\right )}{e^3}-\frac {9 d \left (d+e x^n\right )^2}{e^3}+\frac {2 \left (d+e x^n\right )^3}{e^3}-\frac {6 d^3 \log \left (d+e x^n\right )}{e^3}\right ) \log \left (c \left (d+e x^n\right )^p\right )}{9 n}+\frac {x (f x)^{-1+3 n} \log ^2\left (c \left (d+e x^n\right )^p\right )}{3 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 171, normalized size = 0.46 \begin {gather*} \frac {x^{-3 n} (f x)^{3 n} \left (-18 d^3 p^2 \log ^2\left (d+e x^n\right )+6 d^3 p \log \left (d+e x^n\right ) \left (-11 p+6 \log \left (c \left (d+e x^n\right )^p\right )\right )+e x^n \left (p^2 \left (66 d^2-15 d e x^n+4 e^2 x^{2 n}\right )-6 p \left (6 d^2-3 d e x^n+2 e^2 x^{2 n}\right ) \log \left (c \left (d+e x^n\right )^p\right )+18 e^2 x^{2 n} \log ^2\left (c \left (d+e x^n\right )^p\right )\right )\right )}{54 e^3 f n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.09, size = 0, normalized size = 0.00 \[\int \left (f x \right )^{-1+3 n} \ln \left (c \left (d +e \,x^{n}\right )^{p}\right )^{2}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 239, normalized size = 0.64 \begin {gather*} \frac {e p {\left (\frac {6 \, d^{3} f^{3 \, n} \log \left (\frac {e x^{n} + d}{e}\right )}{e^{4} n} - \frac {2 \, e^{2} f^{3 \, n} x^{3 \, n} - 3 \, d e f^{3 \, n} x^{2 \, n} + 6 \, d^{2} f^{3 \, n} x^{n}}{e^{3} n}\right )} \log \left ({\left (e x^{n} + d\right )}^{p} c\right )}{9 \, f} + \frac {\left (f x\right )^{3 \, n} \log \left ({\left (e x^{n} + d\right )}^{p} c\right )^{2}}{3 \, f n} - \frac {{\left (18 \, d^{3} f^{3 \, n} \log \left (e x^{n} + d\right )^{2} - 4 \, e^{3} f^{3 \, n} x^{3 \, n} + 15 \, d e^{2} f^{3 \, n} x^{2 \, n} - 66 \, d^{2} e f^{3 \, n} x^{n} - 6 \, {\left (6 \, f^{3 \, n} \log \left (e\right ) - 11 \, f^{3 \, n}\right )} d^{3} \log \left (e x^{n} + d\right )\right )} p^{2}}{54 \, e^{3} f n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.40, size = 260, normalized size = 0.70 \begin {gather*} \frac {{\left (2 \, {\left (2 \, p^{2} e^{3} - 6 \, p e^{3} \log \left (c\right ) + 9 \, e^{3} \log \left (c\right )^{2}\right )} f^{3 \, n - 1} x^{3 \, n} - 3 \, {\left (5 \, d p^{2} e^{2} - 6 \, d p e^{2} \log \left (c\right )\right )} f^{3 \, n - 1} x^{2 \, n} + 6 \, {\left (11 \, d^{2} p^{2} e - 6 \, d^{2} p e \log \left (c\right )\right )} f^{3 \, n - 1} x^{n} + 18 \, {\left (d^{3} f^{3 \, n - 1} p^{2} + f^{3 \, n - 1} p^{2} x^{3 \, n} e^{3}\right )} \log \left (x^{n} e + d\right )^{2} - 6 \, {\left (6 \, d^{2} f^{3 \, n - 1} p^{2} x^{n} e - 3 \, d f^{3 \, n - 1} p^{2} x^{2 \, n} e^{2} + 2 \, {\left (p^{2} e^{3} - 3 \, p e^{3} \log \left (c\right )\right )} f^{3 \, n - 1} x^{3 \, n} + {\left (11 \, d^{3} p^{2} - 6 \, d^{3} p \log \left (c\right )\right )} f^{3 \, n - 1}\right )} \log \left (x^{n} e + d\right )\right )} e^{\left (-3\right )}}{54 \, n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\ln \left (c\,{\left (d+e\,x^n\right )}^p\right )}^2\,{\left (f\,x\right )}^{3\,n-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________